package com.yidu.best.stock.stockQuotation.domain;

import java.math.BigDecimal;

public class StockQuotationVo {
	/**
	 * 股票行情Id
	 */
	private String stockQuotationId;
	/**
	 * 股票名
	 */
	private String stockName;
	/**
	 * 股票板块ID
	 */
	private String stockplateId;
	/**
	 * 股票代码
	 */
	private String stockCode;
	/**
	 * 股票分类标记
	 */
	private String classCode;
	/**
	 * 涨幅
	 */
	private BigDecimal increase;
	/**
	 * 涨铁
	 */
	private BigDecimal rausAndFall;
	/**
	 * 开盘价
	 */
	private BigDecimal openingPrice;
	/**
	 * 收盘价
	 */
	private BigDecimal closingPrice;
	/**
	 * 创建日期
	 */
	private String tradeDate;
	/**
	 * 描述
	 */
	private String description;
	
	private Integer page;
	
	private Integer limit;
	
	public StockQuotationVo() {
		super();
	}

	public StockQuotationVo(String stockQuotationId, String stockName, String stockplateId, String stockCode,
			String classCode, BigDecimal increase, BigDecimal rausAndFall, BigDecimal openingPrice,
			BigDecimal closingPrice, String tradeDate, String description, Integer page, Integer limit) {
		super();
		this.stockQuotationId = stockQuotationId;
		this.stockName = stockName;
		this.stockplateId = stockplateId;
		this.stockCode = stockCode;
		this.classCode = classCode;
		this.increase = increase;
		this.rausAndFall = rausAndFall;
		this.openingPrice = openingPrice;
		this.closingPrice = closingPrice;
		this.tradeDate = tradeDate;
		this.description = description;
		this.page = page;
		this.limit = limit;
	}

	public String getStockQuotationId() {
		return stockQuotationId;
	}

	public void setStockQuotationId(String stockQuotationId) {
		this.stockQuotationId = stockQuotationId;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public String getStockplateId() {
		return stockplateId;
	}

	public void setStockplateId(String stockplateId) {
		this.stockplateId = stockplateId;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	public BigDecimal getIncrease() {
		return increase;
	}

	public void setIncrease(BigDecimal increase) {
		this.increase = increase;
	}

	public BigDecimal getRausAndFall() {
		return rausAndFall;
	}

	public void setRausAndFall(BigDecimal rausAndFall) {
		this.rausAndFall = rausAndFall;
	}

	public BigDecimal getOpeningPrice() {
		return openingPrice;
	}

	public void setOpeningPrice(BigDecimal openingPrice) {
		this.openingPrice = openingPrice;
	}

	public BigDecimal getClosingPrice() {
		return closingPrice;
	}

	public void setClosingPrice(BigDecimal closingPrice) {
		this.closingPrice = closingPrice;
	}

	public String getTradeDate() {
		return tradeDate;
	}

	public void setTradeDate(String tradeDate) {
		this.tradeDate = tradeDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	@Override
	public String toString() {
		return "StockPlateVo [stockQuotationId=" + stockQuotationId + ", stockName=" + stockName + ", stockplateId="
				+ stockplateId + ", stockCode=" + stockCode + ", classCode=" + classCode + ", increase=" + increase
				+ ", rausAndFall=" + rausAndFall + ", openingPrice=" + openingPrice + ", closingPrice=" + closingPrice
				+ ", tradeDate=" + tradeDate + ", description=" + description + ", page=" + page + ", limit=" + limit
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((classCode == null) ? 0 : classCode.hashCode());
		result = prime * result + ((closingPrice == null) ? 0 : closingPrice.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((increase == null) ? 0 : increase.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((openingPrice == null) ? 0 : openingPrice.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((rausAndFall == null) ? 0 : rausAndFall.hashCode());
		result = prime * result + ((stockCode == null) ? 0 : stockCode.hashCode());
		result = prime * result + ((stockName == null) ? 0 : stockName.hashCode());
		result = prime * result + ((stockQuotationId == null) ? 0 : stockQuotationId.hashCode());
		result = prime * result + ((stockplateId == null) ? 0 : stockplateId.hashCode());
		result = prime * result + ((tradeDate == null) ? 0 : tradeDate.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StockQuotationVo other = (StockQuotationVo) obj;
		if (classCode == null) {
			if (other.classCode != null)
				return false;
		} else if (!classCode.equals(other.classCode))
			return false;
		if (closingPrice == null) {
			if (other.closingPrice != null)
				return false;
		} else if (!closingPrice.equals(other.closingPrice))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (increase == null) {
			if (other.increase != null)
				return false;
		} else if (!increase.equals(other.increase))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (openingPrice == null) {
			if (other.openingPrice != null)
				return false;
		} else if (!openingPrice.equals(other.openingPrice))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (rausAndFall == null) {
			if (other.rausAndFall != null)
				return false;
		} else if (!rausAndFall.equals(other.rausAndFall))
			return false;
		if (stockCode == null) {
			if (other.stockCode != null)
				return false;
		} else if (!stockCode.equals(other.stockCode))
			return false;
		if (stockName == null) {
			if (other.stockName != null)
				return false;
		} else if (!stockName.equals(other.stockName))
			return false;
		if (stockQuotationId == null) {
			if (other.stockQuotationId != null)
				return false;
		} else if (!stockQuotationId.equals(other.stockQuotationId))
			return false;
		if (stockplateId == null) {
			if (other.stockplateId != null)
				return false;
		} else if (!stockplateId.equals(other.stockplateId))
			return false;
		if (tradeDate == null) {
			if (other.tradeDate != null)
				return false;
		} else if (!tradeDate.equals(other.tradeDate))
			return false;
		return true;
	}
	
}
